package com.ruoyi.system.domain.bo;

import com.ruoyi.common.core.validate.AddGroup;
import com.ruoyi.common.core.validate.EditGroup;
import lombok.Data;
import lombok.EqualsAndHashCode;
import javax.validation.constraints.*;

import java.util.Date;

import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 项目下的用户业务对象 kfn_project_user
 *
 * @author Panda
 * @date 2023-12-21
 */

@Data
@EqualsAndHashCode(callSuper = true)
public class KfnProjectUserBo extends BaseEntity {

    /**
     * 主键
     */
    @NotNull(message = "主键不能为空", groups = { EditGroup.class })
    private Long projectUserId;

    /**
     * 项目中用户的角色
     */
    @NotBlank(message = "项目中用户的角色不能为空", groups = { AddGroup.class, EditGroup.class })
    private String projectUserRole;

    /**
     * 用户id
     */
    @NotNull(message = "用户id不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long userId;

    /**
     * 用户名
     */
    private String userName;

    /**
     * 当前从事该项目的用户状态
     */
    @NotBlank(message = "当前从事该项目的用户状态不能为空", groups = { AddGroup.class, EditGroup.class })
    private String projectUserStatus;

    /**
     * 关联的项目id
     */
    @NotBlank(message = "关联的项目id不能为空", groups = { AddGroup.class, EditGroup.class })
    private String projectId;


}
